<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>医学研究登记备案信息系统</title>
<link href="/css/style.css" rel="stylesheet" type="text/css" />
<script src="/js/common.js"></script>
<script type="text/javascript" src="/scripts/jquery.min.js"></script>

<script type="text/javascript">
function submitForm() {
	var id = $("#id").val();
	var reason = $("#reason").val();
	var status = $("#status").val();
	if($.trim(reason).length<1) {
		alert("审核意见不能为空！");
		$("#reason").focus();
	}else {
		$.ajax({
			url : 'project!auditProjectVersion.action',
			dataType: 'html',
			data:{
				"id": id,
				"reason": reason,
				"status": status
			},
			success : function(data) {
				Interceptor(data);
			     if(data!=null && data=="success") {
			    	alert("操作成功！");
			    	document.location.href="project_version_audit.jsp";
			     }
			},
			error : function() {
				alert("通信失败！");
			}
		 });
	}
}
</script>
 
</head>
<body>
<div id="MainContainer">
   
   <jsp:include page="/index/project_top.jsp" />
  
  <div id="wrapWhite">
  
  <div style="margin-top: 20px; margin-left: 20px; color: #666; font-size: 12px;">当前位置：医学研究项目备案 &gt;&gt; 项目变更审查</div>
  
  <div class="Contentbox">
  <input type="hidden" name="id" id="id" value="<%if(request.getParameter("id")!=null) out.print(request.getParameter("id")); %>">
  <input type="hidden" name="status" id="status" value="<%if(request.getParameter("status")!=null) out.print(request.getParameter("status")); %>">
  <div class="ContentTitle"></div>
  
  <h3 style="margin-top: 30px;">审查信息</h3>
  <div class="reg_form">
    <br>
    <ul>
      <li class="name">审查状态：</li>
      <li class="inpu" style="font-size: 14px; color: red; font-weight: bold;">
        <%if(request.getParameter("status")!=null && "2".equals(request.getParameter("status"))) out.print("审查不通过"); %>
      </li>
    </ul>
    <ul>
      <li class="name">审查意见：</li>
      <li class="inpu">
        <textarea style="width: 460px; height: 100px;" id="reason" name="reason" class="texboxarea" ></textarea> *
      </li>
    </ul>
    </div>
    
  	<div style="margin-top: 25px; margin-left: 190px;">
  	  <button onclick="submitForm();" class="btn" style="width: 150px;">保 存 Save</button>
  	  &nbsp;&nbsp;&nbsp;   
  	  <button onclick="location.href='project_version_audit.jsp'" class="btn" style="width: 150px;">返回 Back</button>
 	 </div>
 	 
  </div>
  
  <div class="ContenRight">
  <div class="IndexBox lbox"></div>
  </div>
  
  </div>
  
  <jsp:include page="/index/footer.jsp"></jsp:include>
  
</div>
</body>
</html>